﻿using Method.Enum;
using Models.operResult;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Api.WDS.Operate
{
    public class OtherOp
    {
        /// <summary>
        /// 获取分类下拉框
        /// </summary>
        /// <returns></returns>
        public OperResult<List<string>> GetClassificationList()
        {
            var enumList = typeof(ClassificationEnum.classification);
            return OperResult<List<string>>.Succeed(enumList.GetEnumNames().ToList());
        }
    }
}
